package com.learn.design.lsp.v2;

/**
 * 狙击手
 * @author Administrator
 */
public class Snipper {

    private AugRifle aug;

    public void setAugRifle(AugRifle augRifle) {
        this.aug = augRifle;
    }

    public void killEnemy() {
        //首先看看敌人的情况，别杀死敌人，自己也被人干掉
        aug.zoomOut();
        // 开始射击
        aug.shoot();
    }
}
